
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
//import java.swing.*;
import java.lang.*;
import java.util.ArrayList;

import javax.swing.*;

public class DropDownMenu
implements ActionListener {
	JComboBox comboList;
	private int nameChose;
	FlowLayout flow = new FlowLayout();
	ArrayList<Integer> array = new ArrayList<Integer>();
	private int tracker = 0;

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@SuppressWarnings("unchecked")
	public DropDownMenu(String[] strings) {
		//setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));
		
        
		 comboList = new JComboBox(strings);
		 	int strSize = strings.length - 1;
	     comboList.setSelectedIndex(strSize);
	     //comboList.addActionListener(this);
	     
	     //lay it all out
	     //JPanel patternPanel = new JPanel();
	    // patternPanel.setLayout(flow);
	     //flow.setAlignment(FlowLayout.TRAILING);
	}
	
	
                  		
	//}
	
	//public int getIntChoice(){
			//return nameChose;
	//}
	
	public JComboBox getCBox(){
			return comboList;
	}
	
	public JPanel getPanel(String str, @SuppressWarnings("rawtypes") JComboBox box){
		JPanel panel = new JPanel(new FlowLayout());
		JLabel label = new JLabel(str);
		
		panel.add(label);
		panel.add(box);
			return panel;
			
	}
	public JPanel getPanel(JLabel lab, JComboBox jb){
			JPanel p = new JPanel();
		p.add(lab);
		p.add(jb);
			return p;
	}
	
	public ArrayList getArray(){
		return array;
	}
	
	public void enabled(JComboBox box, boolean bool){
		if (bool = false){
			box.setEnabled(false);
		}
		else{
			box.setEnabled(true);
		}
	}
	
	public int currTrackNum(){
		return tracker;
	}



	@Override
	public void actionPerformed(ActionEvent e) {
		// TODO Auto-generated method stub
		
	}
	
		
		
	

}
